package bd.com.escenic.flexilunch.model;

/**
 * $URL: http://flexilunch.googlecode.com/svn/trunk/common/src/main/java/bd/com/escenic/flexilunch/model/CostImpl.java $
 * $Id: CostImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $
 * $Date: 2009-06-03 09:39:19 +0000 (Wed, 03 Jun 2009) $
 * $Author: shihab.uddin@gmail.com $
 * $Revision: 14 $
 */

import java.util.Date;
import java.util.Set;

/**
 * $Id: CostImpl.java 14 2009-06-03 09:39:19Z shihab.uddin@gmail.com $.
 *
 * @author <a href="mailto:shihab.uddin@gmail.com">Shihab Uddin</a>
 * @version $Revision: 14 $
 */
public class CostImpl extends AbstractEntity implements Cost {

  private Date mDate;
  private Set<User> mUsers;
  private double mAmount;
  private double mPerUserAmount;

  /**
   * {@inheritDoc}
   */
  @Override
  public final Type getType() {
    return Type.COST;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Date getDate() {
    return mDate;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setDate(final Date pDate) {
    mDate = pDate;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public Set<User> getUsers() {
    return mUsers;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setUsers(final Set<User> pUsers) {
    mUsers = pUsers;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public double getAmount() {
    return mAmount;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public void setAmount(final double pAmount) {
    mAmount = pAmount;
  }

  /**
   * {@inheritDoc}
   */
  @Override
  public double getPerUserAmount() {
    return mPerUserAmount;
  }

  public void setPerUserAmount(final double pPerUserAmount) {
    mPerUserAmount = pPerUserAmount;
  }
}
